//applyMiddeware 加载中间件
import {createStore, applyMiddleware} from 'redux'
import RootReducer from './reducer/index'
//引入系统提供的中间件
import logger from 'redux-logger'
//引入提供异步的中间件redux-thunk
import thunk from 'redux-thunk'
//引入观察redux的插件依赖
import {composeWithDevTools} from 'redux-devtools-extension'

export let store = createStore(RootReducer, {},composeWithDevTools(applyMiddleware(logger, thunk)))